package plus.xj17520.base.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @projectName: pethomeProject
 * @package: plus.xj17520.query
 * @className: BaseQuery
 * @author: XiaoJue
 * @description: TODO
 * @date: 2022/5/23 17:05
 * @version: 1.0
 */
@Data
@ApiModel(description = "实体类用于：分页，高级查询，批量删除")
public class BaseQuery {

    @ApiModelProperty(value = "实例对象的id数组")
    private Long[] ids;             // 批量ids

    @ApiModelProperty(value = "实例对象的关键字查询")
    private String keyword;         // 关键字查询

    @ApiModelProperty(value = "实例的当前页")
    private Integer current = 1;    // 当前页

    @ApiModelProperty(value = "实例每页显示多少条数据")
    private Integer size = 10;      // 每页显示多少条

    @ApiModelProperty(value = "实例对象的状态")
    private Integer state;          // 状态
}
